package com.fairytask.ui.guide
{
	import com.jzonl.event.GuideEvent;
	import com.jzonl.net.messages.CustomToServerFlag;
	import com.jzonl.net.mgr.NetMgr;
	import com.fairytask.ui.base.FrameUI;
	
	import flash.events.MouseEvent;
	import flash.geom.Rectangle;
	
	/**
	 *最基础的提示框的类型 
	 * 
	 */
	public class BaseGuide extends FrameUI
	{
		private static var _self	:BaseGuide;
		private var _btnType	:int	=	-1;
		
		public static function getInstance():BaseGuide
		{
			if(_self==null)
			{
				_self	=	new BaseGuide();				
			}
			return _self;
		}
		
		public function BaseGuide(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		
		public function showGuide(txt:String, desTxt:String="",type:int=-1):void
		{
			_btnType	=	type;
			show();
		}
		
		/**
		 * 点确定 
		 * @param evt
		 * 
		 */
		protected function onOKCancel(evt:MouseEvent=null,idx:int=0):void
		{
			this.hide();
			model.dispatchEvent(new GuideEvent(GuideEvent.SEND_CONFIRM));
		}
		public function senceShow():void
		{
			show();
		}
		
		/**
		 * 重设位置 
		 * @param pRect
		 * 
		 */
		public function resetPos(pRect:Rectangle):void
		{
			
		}
		
		override public function show(space:String=TOPLAYER, onshow:Function=null):void
		{
			super.show(space,onshow);
		}
		
		override public function hide(e:*=null):void
		{
			super.hide();
		}
	}
}